﻿@model IEnumerable<ThienVienDiDaTu.Models.AnPham>

@{
    ViewBag.Title = "Ấn Phẩm";
    ViewBag.TrangChu = "";
    ViewBag.GioiThieu = "";
    ViewBag.Thien = "";
    ViewBag.TinTuc = "";
    ViewBag.AnPham = "active";
    var i = 0; 
}


  <div class="art-content-layout">
                    <div class="art-content-layout-row">
                        <div class="art-layout-cell art-sidebar1">
                            
                            @{Html.RenderAction("TinTucMoiNhat", "Home");}
                            @{Html.RenderAction("LienheNhaChua", "Home");}
                        </div>
                        <div class="art-layout-cell art-content">
                            
                            <div class="art-post">
                                <div class="art-post-tl"></div>
                                <div class="art-post-tr"></div>
                                <div class="art-post-bl"></div>
                                <div class="art-post-br"></div>
                                <div class="art-post-tc"></div>
                                <div class="art-post-bc"></div>
                                <div class="art-post-cl"></div>
                                <div class="art-post-cr"></div>
                                <div class="art-post-cc"></div>
                                <div class="art-post-body">
                            <div class="art-post-inner">
                                            <h2 class="art-postheader">
                                                @Model.First().TenAnPham

                                            </h2>
                                            <div class="art-postcontent">
                                                <!-- article-content -->
                                                
                                                
                                                <img class="art-article" src=@("/Content/data/images/"+Model.First().LinkAnh) alt="an image" style="float:left;border:0;margin: 0 1em 0 0;" />
                                                <p>
                                                <b>Tác giả : </b> @Model.First().TacGia <br /><br />

                                                <b>Đơn vị phát hành : </b>@Model.First().DonViPhatHanh<br /><br />

                                                <b>Giá : <span style="color:#F00">@Model.First().Gia </span></b>
                                                 </p>
                                                 <br/>
                                                 <div class="title_list"> Giới thiệu về ấn phẩm</div>
                                                 
                                                 <p>
                                                 @Model.First().TomTat

                                                 </p>
 
 
 
  
                                                <div class="cleared"></div>
                                                    
                                                <!-- /article-content -->
                                            </div>
                                            <div class="cleared"></div>
                            </div>
                            <br /><br />
                            <div class="title_list"> Các ấn phẩm khác</div>
                                <div class="art-post-inner">
                                            
                                            <div class="art-postcontent">
                                                <!-- article-content -->
                                                
                                                
                                                
                                                <div class="cleared"></div>
                                                <div class="art-content-layout overview-table">

                                                <div class="kart-content-layout-row"> 
                                                @{
                                                foreach (var item in Model)
                                                {
                                                    if (item.ID != Model.First().ID)
                                                    {
                                                  
                                                         {
                                                              
                                                             <div class="art-layout-cell">
                                                              <div class="overview-table-inner">

                                                						          <a href=@Url.Action("ChiTietAnPham", "Home", new {id = @item.ID})><img src=@("/Content/data/images/"+item.LinkAnh) alt="an image" class="image" height="150px" width="200px"></a>
                                                						          <p class="center"><b><a href=@Url.Action("ChiTietAnPham", "Home", new {id = @item.ID})>@item.TenAnPham </a></b></p>
                                                               </div>
                                                	        </div><!-- end cell -->
                                                           
                                                         } 
                                                     
                                                         if (i % 3 == 2 & i > 0)
                                                         {
                                                            @MvcHtmlString.Create("</div> <div class=\"kart-content-layout-row\">");
                                                            
                                                         }
                                                         
                                                         i++; 
                                                    }
                                                     
                                                }
                                                }
                                                </div>

                                                    
                                                </div><!-- end table -->
                                                    
                                                <!-- /article-content -->
                                            </div>
                                            <div class="cleared"></div>
                            </div>
                            
                            		<div class="cleared"></div>
                                </div>
                            </div>
                        </div>
                    </div>
 </div>

